import request from '@/common/utils/request.js';
import db from '@/common/utils/unloginRequest.js'
 //add my
 export function findyishengBykeshi(keshi) {
	 console.log(keshi+"-------------")
 	 return db({
 		 url: '/doctor/findyishengBykeshi' + '?keshi='+keshi,
 		 method: 'get'
 	 })
 }
 
 export function findyishengByid(id) {
 	 return db({
 		 url: '/doctor/findyishengByid' + '?id='+id,
 		 method: 'get'
 	 })
 } 
 
 export function findAllKeshi() {
 	 return db({
 		 url: '/jiuzzheng/findAllKeshi',
 		 method: 'get'
 	 })
 }
 

 
 export function findKeshiByid(id) {
 	 return db({
 		 url: '/jiuzzheng/findKeshiByid' + '?id='+id,
 		 method: 'get'
 	 })
 }
 
 export function getKeshiName(keshi) {
 	 return db({
 		 url: '/jiuzzheng/getKeshiName' + '?keshi='+keshi,
 		 method: 'get'
 	 })
 }
 
 export function findavaliablePanban(keshi) {
 	 return db({
 		 url: '/jiuzzheng/findavaliablePanban' + '?keshi='+keshi,
 		 method: 'get'
 	 })
 }
 
 
 export function findADateList(keshi) {
 	 return db({
 		 url: '/jiuzzheng/findADateList' + '?keshi='+keshi,
 		 method: 'get'
 	 })
 }
 
 export function findADateListByyIsheng(keshi,yisheng) {
 	 return db({
 		 url: '/jiuzzheng/findADateListByyIsheng' + '?keshi='+keshi+'&yisheng='+yisheng,
 		 method: 'get'
 	 })
 }
 
 export function findAYishengBuKeshi(keshi) {
 	 return db({
 		 url: '/jiuzzheng/findAYishengBuKeshi' + '?keshi='+keshi,
 		 method: 'get'
 	 })
 }
 
 export function chooseDoctorByDateKeAKeshi(keshi,date) {
 	 return db({
 		 url: '/jiuzzheng/chooseDoctorByDateKeAKeshi' + '?keshi='+keshi+'&date='+date,
 		 method: 'get'
 	 })
 }

 export function quguahao(yonghu,yisheng,riqi,shijian,feiyongflag,okflag,zhengzhuang) {
 	 return db({
 		 url: '/jiuzzheng/quguahao' + '?yonghu='+yonghu+' &yisheng='+yisheng+' &riqi='+riqi+' &shijian='+shijian+' &feiyongflag='+feiyongflag+' &okflag='+okflag+' &zhengzhuang='+zhengzhuang,
 		 method: 'get'
 	 })
 }
 
 export function seemyYuYue(yonghu) {
 	 return db({
 		 url: '/jiuzzheng/seemyYuYue' + '?yonghu='+yonghu,
 		 method: 'get'
 	 })
 }
 
 
 export function tuihao(id) {
 	 return db({
 		 url: '/jiuzzheng/tuihao' + '?id='+id,
 		 method: 'get'
 	 })
 }
 
 
 export function findAYuyuelTimes(yisheng,date) {
 	 return db({
 		 url: '/jiuzzheng/findAYuyuelTimes' + '?yisheng='+yisheng+' &date='+date,
 		 method: 'get'
 	 })
 }
 

 export function selectUserByid(id) {
 	 return db({
 		 url: '/user/selectByPrimaryKey' + '?id='+id,
 		 method: 'get'
 	 })
 }
 
 
 export function topingjia1(id) {
 	 return db({
 		 url: '/jiuzzheng/topingjia1' + '?id='+id,
 		 method: 'get'
 	 })
 }
 
 export function addpingjia(jiuzhengbianhao,score,jianyi) {
 	 return db({
 		 url: '/jiuzzheng/addpingjia' + '?jiuzhengbianhao='+jiuzhengbianhao+' &score='+score+' &jianyi='+jianyi,
 		 method: 'get'
 	 })
 }
 
 export function checkpingjiaexist(jiuzhengbianhao) {
 	 return db({
 		 url: '/jiuzzheng/checkpingjiaexist?jiuzhengbianhao='+jiuzhengbianhao,
 		 method: 'get'
 	 })
 }
 
 export function baogao() {
 	 return db({
		  url: '/baogao/findAll',
 		 method: 'get'
 	 })
 }
 export function findBaoGaoByid(id) {
 	 return db({
 		 url: '/baogao/findByid?id='+id,
 		 method: 'get'
 	 })
 }
 
 export function jiaofei(id) {
 	 return db({
 		 url: '/baogao/jiaofie' + '?yuyuecode='+id,
 		 method: 'get'
 	 })
 }